C#
Parameters
- source
- Data storage or cache.
- key
- Key of the value.
- defaultValue
- The default value that will be returned of the method if the value by key was not found in the storage/cache.
Type Parameters
- T
- The type to which the value returned from the storage / cache is given.
Return Value
The by the key key casted to the T type or defaultValue if the value is not found.Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2